import request from "@/utils/request";

class categoryAPI {
  static getCategoryList(params?: PageQuery) {
    return request<any, PageResult<CategoryResult[]>>({
      url: "/docs/getCategory",
      method: "get",
      params,
    });
  }
}

export default categoryAPI;

export interface CategoryResult {
  id: number;
  name: string;
}
